import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/in_order_page_child_entity.dart';

InOrderPageChildEntity $InOrderPageChildEntityFromJson(Map<String, dynamic> json) {
  final InOrderPageChildEntity loginBeanEntity = InOrderPageChildEntity();

  final String? stockInId = jsonConvert.convert<String>(json['stockInId']);
  if (stockInId != null) {
    loginBeanEntity.stockInId = stockInId;
  }

  final String? purchaseOrderNumber = jsonConvert.convert<String>(json['purchaseOrderNumber']);
  if (purchaseOrderNumber != null) {
    loginBeanEntity.purchaseOrderNumber = purchaseOrderNumber;
  }

  final String? warehouseName = jsonConvert.convert<String>(json['warehouseName']);
  if (warehouseName != null) {
    loginBeanEntity.warehouseName = warehouseName;
  }

  final double? purchaseCount = jsonConvert.convert<double>(json['purchaseCount']);
  if (purchaseCount != null) {
    loginBeanEntity.purchaseCount = purchaseCount;
  }

  final String? createTime = jsonConvert.convert<String>(json['createTime']);
  if (createTime != null) {
    loginBeanEntity.createTime = createTime;
  }

  return loginBeanEntity;
}

Map<String, dynamic> $InOrderPageChildEntityToJson(InOrderPageChildEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['stockInId'] = entity.stockInId;
  data['purchaseOrderNumber'] = entity.purchaseOrderNumber;
  data['purchaseCount'] = entity.purchaseCount;
  data['warehouseName'] = entity.warehouseName;
  data['createTime'] = entity.createTime;
  return data;
}
